import styled from 'styled-components'

export const HomeWrapper = styled.div`
  width: 960px;
  overflow: hidden;
  margin: 0 auto;
`
export const HomeLeft = styled.div`
  magin-left: 15px;
  padding-top: 30px;
  width: 625px;
  float: left
  .banner-img{
    width:625px;
    height:270px;
  }
`
export const HomeRight = styled.div`
  width: 285px;
  float: right;
`
export const TopicWrapper = styled.div`
  overflow: hidden;
  padding: 20px 0 10px 0;
  margin-left: -18px;
  border-bottom: 1px solid #dcdcdc;
`
export const TopicItem = styled.div`
  float: left;
  background: #f7f7f7;
  height: 32px;
  line-height: 32px;
  padding-right: 10px;
  font-size: 14px;
  color: #333;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  margin-left: 18px;
  margin-bottom: 18px;
  .topic-pic{
    display: block;
    float: left;
    width:32px;
    height: 32px;
    margin-right: 10px;
  }
`
export const ListItem = styled.div`
  padding: 20px 0;
  border: 1px solid #dcdcdc;
  overflow: hidden;
  margin-bottom: 10px;
  .list-pic{
    display: block;
    width: 125px;
    height: 100px;
    float: right;
    border-radius: 10px;
  }
`
export const ListInfo = styled.div`
  width: 495px;
  float: left;
  .title{
    line-height: 27px;
    font-size: 18px;
    font-weight: blod;
    color: #333；
  }
  .desc{
    font-size: 13px;
    line-height: 18px;
    color: #999;
  }
`
export const RecommendWrapper = styled.div`
  margin: 30px 0;
  width: 280px;
`
export const RecommendItem = styled.div`
  width: 280px;
  height: 50px;
  background: url(${(props) => props.imgUrl});
  background-size: contain;
  margin: 5px 0;
`
export const WriterWrapper =styled.div`
  width: 280px;
  margin-top: 20px;
  border: 1px solid #dcdcdc;
`
export const WriterHead = styled.div`
  width； 280px;
  height: 30px;
  line-height: 30px;
  font-size: 14px;
  color: #969696;
  margin-bottom: 20px;
  .writer-left{
    float: left;
    padding-left: 10px;
  }
  .writer-right{
    float: right;
    padding-right: 10px;
  }
  .spin{
    font-size: 12px;
    margin-right:5px;
  }
`
export const WriterItem = styled.div`
  width: 280px;
  height: 50px;
  position: relative;
  margin: 10px 0;
  .writer-pic{
    width: 48px;
    height: 48px;
    border-radius: 24px;
    margin-top: 1px;
    margin-left:2px;
    margin-right: 10px;
    float: left;
  }
  .writer-top{
    line-height: 20px;
    width: 220px;
  }
  .writer-name{
    font-size: 14px;
    color: #333;
  }
  .writer-atten{
    font-size: 13px;
    color:#42c02e;
    font-weight: 600;
    position: absolute;
    right: 5px;
  }
  .writer-content{
    display: block;
    width: 220px;
    line-height: 30px;
    font-size:12px;
    color: #969696;
  }
  }
`